<audio class="audio"
       id="audio-<?php echo $id ?>"
       title="<?php echo $title ?>"
       width="<?php echo $width ?>"
       controls>
           <?php foreach ($sources as $source) : ?>
        <source src="<?php echo $source['src'] ?>"
                type='<?php echo $source['type'] ?>' />
            <?php endforeach; ?>
            <?php foreach ($tracks as $track) : ?>
        <track src="<?php echo $track['src'] ?>"
               kind="<?php echo $track['kind'] ?>"
               srclang="<?php echo $track['srclang'] ?>"
               label="<?php echo $track['label'] ?>" />
           <?php endforeach; ?>
           <?php if ($flashAudio) : ?>
        <object width="<?php echo $width ?>" height="<?php echo $height ?>"
                type="application/x-shockwave-flash"
                data="<?php echo html5av_manager::getUrl(); ?>/lib/mediaelement/flashmediaelement.swf">
            <param name="movie"
                   value="<?php echo html5av_manager::getUrl(); ?>/lib/mediaelement/flashmediaelement.swf" />
            <param name="flashvars" value="controls=true&amp;file=<?php echo $flashVideo ?>" />
        </object>
    <?php endif; ?>
</audio>

<?php if (count($closedLinks) || count($openLinks)) : ?>
    <p>
        <strong>Download Audio:</strong>
        <?php if (count($closedLinks)) : ?>
            Closed Format:
            <?php foreach ($closedLinks as $link) : ?>
            <a href="<?php echo $link['href'] ?>"
               ><?php echo $link['name'] ?></a> 
            <?php endforeach; ?>
        <?php endif; ?>

        <?php if (count($openLinks)) : ?>
            Open Format:
            <?php foreach ($openLinks as $link) : ?>
            <a href="<?php echo $link['href'] ?>"
               ><?php echo $link['name'] ?></a> 
            <?php endforeach; ?>
        <?php endif; ?>
    </p>
<?php endif;